//
//  GroupBuySuperCell.m
//  CenturyCity
//
//  Created by beisheng03 on 2017/11/27.
//  Copyright © 2017年 beisheng. All rights reserved.
//

#import "GroupBuySuperCell.h"
#import "GroupBuyingCell.h"


@interface GroupBuySuperCell()<UICollectionViewDelegate,UICollectionViewDataSource>
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *bottomMargin;
@property (weak, nonatomic) IBOutlet UICollectionView *myCollectionView;

@end

@implementation GroupBuySuperCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.myCollectionView.delegate = self;
    self.myCollectionView.dataSource = self;
    self.bottomMargin.constant = 0;
    [self.myCollectionView registerNib:[UINib nibWithNibName:NSStringFromClass([GroupBuyingCell class]) bundle:nil]forCellWithReuseIdentifier:[GroupBuyingCell identifierStr]];
    self.myCollectionView.showsHorizontalScrollIndicator = NO;
    self.myCollectionView.backgroundColor = [UIColor whiteColor];

}

- (NSInteger)numberOfSectionsInCollectionView:(UICollectionView *)collectionView{
    
    return 1;
}

- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section{
    
    return 5;
}


- (__kindof UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath{
    
    GroupBuyingCell *temp = (GroupBuyingCell *)[collectionView dequeueReusableCellWithReuseIdentifier:[GroupBuyingCell identifierStr] forIndexPath:indexPath];
    
//    temp.contentView.backgroundColor = randomColor;

    return temp;
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
